<?php
use Faker\Generator as Faker;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\Product::class, function (Faker $faker) {
    return [
        'customer_id'      => 0,
        'store_id'         => 0,
        'brand_id'         => 0,
        'stock'            => $faker->randomNumber(3),
        'category_id'      => 0,
        'priority'         => 0,
        'name'             => $faker->unique()->name,
        'spu_code'         => $faker->uuid,
        // 默认请保持字段未数据库可接受的最少数据
        'product_url'         => null,
        'product_url_type_id' => 0,
    ];
});
